package com.xmxsuperstar.http;

import com.xmxsuperstar.app.CommonConstants.HTTP_METHODS_ENUM;

public class HttpRequestMsg extends HttpMsg {

    private static final long serialVersionUID = 1L;

    private HTTP_METHODS_ENUM method;

    private String            path;

    private String            version;

    public HttpRequestMsg() {
        this.addHeader("User-Agent", "TW_Tunnel/0.1");
        // this.addHeader("User-Agent",
        // "Mozilla/5.0 (Windows NT 6.1; rv:6.0) Gecko/20100101 Firefox/6.0");
        this.addHeader("Accept-Language", "zh-CN,zh;q=0.8");
        this.addHeader("Accept-Charset", "UTF-8;q=0.7,*;q=0.3");
        this.addHeader("Accept-Encoding", "gzip, deflate");
        this.addHeader("Connection", "close");
    }

    public HTTP_METHODS_ENUM getMethod() {
        return method;
    }

    public void setMethod(HTTP_METHODS_ENUM method) {
        this.method = method;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

}
